<?php

namespace Biz\Models\Site;

use Biz\Models\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * SitePay.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class SitePay extends Model
{
    use SoftDeletes;
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'site_pay';

    /**
     * @var array
     */
    protected $fillable = [
        'site_id',
        'gateway',
        'status',
    ];

    /**
     * 查询PayEase配置.
     */
    public function pay_ease()
    {
        return $this->hasOne(SitePayEase::class, 'pay_id', 'id');
    }
}
